package com.didispace;

import com.didispace.service.ComputeClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用来处理短路时提示信息； 在接口中指定处理类
 *
 * Created by BG294913 on 2017/9/25.
 */

@Component
public class ComputeClientHystrix implements ComputeClient {
    @Override
    public Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b) {
        return -9999;
    }
}
